<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/8/22 14:17
 * Note:
 */
namespace Admin\Model;
use Think\Model;

class LogAdminModel extends Model{

    protected $tableName = '';

    public function writeAdmin($admin_id = 0,$login_time = 0,$login_ip = '')
    {
        if ($admin_id && $login_time){
            $data = array(
                'uid'        =>  $admin_id,
                'login_time' =>  $login_time,
                'login_ip'   =>  $login_ip
            );
            return $this->add($data);
        } else {
            return false;
        }
    }
}